package net.csdn.business.common.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author wanghang
 * @version 1.0
 * @date 2022/8/24 11:37
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EventProjectVo implements Serializable {

    private String id;
    private String name;
    private String path;

    @JsonProperty(value = "name_with_namespace")
    @SerializedName(value = "name_with_namespace")
    private String nameWithNamespace;

    @JsonProperty(value = "path_with_namespace")
    @SerializedName(value = "path_with_namespace")
    private String pathWithNamespace;

    @JsonProperty(value = "web_url")
    @SerializedName(value = "web_url")
    private String webUrl;

    private String description;

    /**
     * 最后活跃时间
     */
    @JsonProperty(value = "last_activity_at")
    private String lastActivityAt;
    /**
     * 可见性
     * 0-私有 20-公开
     */
    @JsonProperty("visibility_level")
    private Integer visibilityLevel;
    /**
     * 收藏数量
     */
    @JsonProperty("star_count")
    private Integer starCount;
    /**
     * 派生数
     */
    @JsonProperty("fork_count")
    private Integer forkCount;

    /**
     * 是否stared
     */
    private Boolean stared;
}